{% macro input(name, label, value, title, type, extra) %}
	{% if type == 'checkbox' and value == '1' %}
		{% set checked = ' checked="checked"' %}
	{% endif %}

	<label for="{{ name }}">{{ label }}</label>
	<input type="{{ type|default('text') }}" name="{{ name }}" id="{{ name }}" 
	title="{{ title ? title : '' }}"
	{% if type != 'checkbox' %}
		value="{{ value }}"
	{% endif %}
		{{checked|raw}} {{ extra|raw }} />
	<br />
{% endmacro %}
